package com;

import java.util.ArrayList;
import java.util.Iterator;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import json.TreeNode;
import edu.hohai.ApeWS;



public class test {

	public static void main(String[] args) {
		//ApeWS.setPort("http://10.196.83.53:9000");
		ApeWS.setPort("http://localhost:9000");
		String str = ApeWS.SourceDirWS.getResourceNode("1000","");
		//String str1 = ApeWS.ClassDirWS.getObjectNode("5","666");
		//ApeWS.ClassDirWS.addOjectNode("488", "就是六", "jjj", "2", "sdf");
		System.out.println(str);
		/*
		TreeNode root = new TreeNode("0","0","000","00jj");
		TreeNode node = null;
		node = new TreeNode("1","0","111","11jj");
		root.add(node);
		node = new TreeNode("2","0","222","22jj");
		root.add(node);
		node = new TreeNode("3","2","333","33jj");
		root.add(node);
		JSONArray obj = JSONArray.fromObject(root);
		System.out.println(obj.toString());*/
		//有根    
		//JSONArray obj = JSONArray.fromObject(root.getChildren());
		// 不要根   System.out.println(obj.toString()); 
	}

}
